package com.teemo.dp.singleton.demo6;

/**
 * @author Teemo
 */
public class Washer {
    private Washer() {
        System.out.println("washer init");
    }

    private static class WasherHolder {
        private static Washer washer = new Washer();
    }

    public static Washer getInstance() {
        System.out.println("获取实例");
        return WasherHolder.washer;
    }
}
